// test user request api
const http = uni.$u.http;

// 获取轮播
export function getVideoSwiper() {
	return http.get('/video/api/indexBan')
}

// 获取最新推荐
export function getVideoRecom(params) {
	return http.get('/video/api/videoRecom', {
		params
	})
}

// 获取短剧排行榜
export function getVideoCharts(params) {
	return http.get('/video/api/videoCharts', {
		params
	})
}

// 获取全部短剧
export function getAllVideo(params) {
	return http.get('/video/api/videoTotal', {
		params
	})
}

// 获取小剧场 推荐短剧
export function getTheaterVideo(params) {
	return http.get('/video/api/theater', {
		params
	})
}

// 获取单部短剧详情（列表）
export function getVideoInfo(params) {
	return http.get('/video/api/videoInfo', {
		params
	})
}

// 添加喜欢 
export function likeVideo(params) {
	return http.post('/video/api/videoSkr', params)
}

// 添加收藏 或者 追剧
export function collectVideo(params) {
	return http.post('/video/api/setVideo', params)
}

// 获取用户信息
export function getVideoUser() {
	return http.get('/video/api/userInfo')
}

// 获取星团规则
export function getStarRule() {
	return http.get('/video/api/starAgent')
}

// 获取星团VIP
export function getStarVip() {
	return http.get('/video/api/star')
}

// 开通星团
export function buyStarVip(params) {
	return http.post('/video/api/buyStar', params)
}

// 我的星团 
export function getMyStar(params) {
	return http.post('/video/api/agent', params)
}

// 我的账户收支明细 
export function getAccountList(params) {
	return http.get('/video/api/account', {
		params
	})
}

// 提现记录
export function getCashoutList(params) {
	return http.get('/video/api/cashOut', {
		params
	})
}

// 提现账号详情
export function getAccountInfo(params) {
	return http.get('/video/api/accountInfo', {
		params
	})
}

// 提现详情
export function getCashOutInfo(params) {
	return http.get('/video/api/withdrawInfo', {
		params
	})
}

// 取消提现 
export function cancelCash(params) {
	return http.post('/video/api/withdrawCan', params)
}

// 获取提现配置 
export function getCashOutConfig() {
	return http.get('/video/api/withdrawConfig')
}

// 添加提现账号 
export function addAccNum(params) {
	return http.post('/video/api/cashoutAccount', params)
}

// 获取提现账号列表
export function getAccNumList() {
	return http.get('/video/api/accountList')
}

// 确认提现 
export function subCashOut(params) {
	return http.post('/video/api/withdraw', params)
}

// 获取会员列表 
export function getVideoVipList() {
	return http.get('/video/api/videoVip')
}

// 购买会员VIP /video/api/buyVip
export function buyVideoVip(params) {
	return http.post('/video/api/buyVip', params)
}

// 购买视频
export function buyVideo(params) {
	return http.post('/video/api/buyVideo', params)
}

// 根据ID获取视频链接 getVideoURL
export function getVideoURL(params) {
	return http.get('/video/api/videoItem', {
		params
	})
}

// 获取下级用户好列表
export function getUserList(params) {
	return http.get('/video/api/memberList', {
		params
	})
}

// 添加用户
export function addUser(params) {
	return http.post('/video/api/agentAdd', params)
}

// 获取星团收益列表明细
export function getStarMoneyList(params) {
	return http.get('/video/api/commison', {
		params
	})
}

// 获取充值套餐 
export function getRechargeList() {
	return http.get('/video/api/recharge')
}

// 获取邀请链接
export function getUserUrl() {
	return http.get('/video/api/urlUser')
}

// 首页轮播 分类设置
export function getSwiperCate() {
	return http.get('/video/api/indexConfig')
}

// 分类数据获取
export function getTabVideoList(params) {
	return http.get('/video/api/indexType', {
		params
	})
}

// 获取首页随机推荐视频
export function getRandom(params) {
	return http.get('/video/api/random', {
		params
	})
}


//获取追剧列表
export function getMemberVideo(params) {
	return http.post('video/api/memberVideo',params)
}
//批量取消追剧
export function deleteMoreC(params) {
	return http.post('video/api/moreC',params)
}

// 获取邀请好友code
export function getMycode(params) {
	return http.get('/video/api/invite',{params})
}

// 获取邀请好友code
export function getMyLower(params) {
	return http.get('/video/api/memberList',{params})
}

// 绑定上级邀请码
 export function bindUpUser(params) {
 	return http.post('/video/api/bind',params)
 }
 
 // 获取邀请奖励规则
 export function getRewardNote() {
 	return http.get('/video/api/starNote')
 }

 // 获取邀请奖励规则
 export function getPay(params) {
 	return http.post('/video/api/pay',params)
 }
 
 // 增加播放次数
 export function addWatch(params) {
 	return http.post('/video/api/watch',params)
 }
 
 // 获取充值说明文档  /video/api/payNote
 export function getPayNote() {
 	return http.get('/video/api/payNote')
 }
 
 // 获取支付方式
 export function getPayPlatform(params) {
 	return http.get('/video/api/payPlatform',{params})
 }
 
 // 获取支付token
 export function getPayToken(params) {
 	return http.get('/video/api/confirmOrder',{params})
 }
 
 // 查询订单状态
 export function orderStatus(params) {
 	return http.get('/video/api/payInfo',{params})
 }